<script setup>
	// uni.hideHomeButton()
	function goDemo2() {
		uni.navigateTo({
			url: "/pages/demo2/demo2?name=张三&age=18&like=篮球"
		})
	}

	function goIndex() {
		// uni.navigateTo({
		// 	url: "/pages/index/index" //不能跳转tabBar页面 
		// })
		uni.reLaunch({
			url: "/pages/index/index" 
		})
	}
	console.log(getCurrentPages())
</script>
<template>
	<view class="">
		demo
		<!-- <navigator url="/pages/demo2/demo2">demo2跳转</navigator> -->
		<view @click="goDemo2">跳转到demo2</view>
		<view>-----------</view>
		<view @click="goIndex">跳转到index</view>
	</view>
</template>
<style lang="scss" scoped>

</style>